import { useState } from 'react'



function List(props) {
    const { data } = props
    console.log('------',data);

    return (
        <div >
            <div>
                List
                {
                    data.map((item, id) => <div key={id}>{item.title}-{item.des}</div>)
                }
            </div>
        </div>
    )
}

export default List
